package com.example.demo.bridge_method;


import org.springframework.core.ResolvableType;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public class Test extends A<String>{
    public void printName(){
        System.out.println(namespace);
    }
    public static void main(String[] args) {
        ResolvableType resolvableType1 = ResolvableType.forClass(Test.class);
        System.out.println(resolvableType1.as(A.class).getGeneric(0).resolve().getSimpleName());

    }

}
